import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import TypeNav from '@/components/TypeNav'
import Carousel from '@/components/Carousel'
import Pagination from '@/components/Pagination'

//引入Mock虚拟服务
import '@/mock/server'
//实验发送请求
// import {reqBannerList} from '@/api/index'
// let result = reqBannerList();
// console.log(result)

//全局引入swiper的css样式
import 'swiper/css/swiper.css'

Vue.config.productionTip = false
//三级联动组件全局注册
Vue.component('TypeNav',TypeNav)
Vue.component('Carousel',Carousel)
Vue.component('Pagination',Pagination)

new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = this
  }
}).$mount('#app')
